import request from '@/utils/request'

export function classifyAdd(data) {
  return request({
    url: '/classify/createOrEdit',
    method: 'post',
    data
  })
}

export function getList() {
  return request({
    url: '/classify/list',
    method: 'get',
  })
}

export function deleteClassify(data) {
  return request({
    url: '/classify/delete',
    method: 'post',
    data
  })
}

export function findById(id) {
  return request({
    url: '/classify/findById',
    method: 'get',
    params: {id}
  })
}

export function pList() {
  return request({
    url: '/classify/pList',
    method: 'get',
  })
}
